.settings-card {
  margin-bottom: 24px;
}

.settings-card .ant-form-item {
  margin-bottom: 24px;
}

.settings-card .setting-description {
  margin-left: 8px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 13px;
}

.settings-card .color-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-card .color-blocks .color-block {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.settings-card .color-blocks .color-block:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.settings-card .color-blocks .color-block.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1890ff;
}

.settings-card .color-blocks .color-block .checkmark {
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.settings-preview-card .preview-container {
  height: 400px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.settings-preview-card .preview-container .preview-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.settings-preview-card .preview-container .preview-layout.top .preview-content {
  flex-direction: column;
}

.settings-preview-card .preview-container .preview-layout.side .preview-content, .settings-preview-card .preview-container .preview-layout.mix .preview-content {
  flex-direction: row;
}

.settings-preview-card .preview-container .preview-layout .preview-header {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
}

.settings-preview-card .preview-container .preview-layout .preview-header.fixed {
  position: sticky;
  top: 0;
  z-index: 10;
}

.settings-preview-card .preview-container .preview-layout .preview-header .preview-logo {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  margin-right: 12px;
}

.settings-preview-card .preview-container .preview-layout .preview-header .preview-menu.horizontal {
  flex: 1;
  height: 20px;
  background-color: #f0f2f5;
  border-radius: 4px;
}

.settings-preview-card .preview-container .preview-layout .preview-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.settings-preview-card .preview-container .preview-layout .preview-content .preview-sidebar {
  width: 60px;
  border-right: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.settings-preview-card .preview-container .preview-layout .preview-content .preview-sidebar.fixed {
  position: sticky;
  left: 0;
  height: 100%;
}

.settings-preview-card .preview-container .preview-layout .preview-content .preview-sidebar .preview-logo {
  height: 30px;
  margin: 10px;
  border-radius: 4px;
}

.settings-preview-card .preview-container .preview-layout .preview-content .preview-sidebar .preview-menu.vertical {
  flex: 1;
  margin: 10px;
  background-color: #f0f2f5;
  border-radius: 4px;
}

.settings-preview-card .preview-container .preview-layout .preview-content .preview-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.settings-preview-card .preview-container .preview-layout .preview-content .preview-main .preview-breadcrumb {
  height: 20px;
  margin-bottom: 12px;
  background-color: #f0f2f5;
  border-radius: 4px;
}

.settings-preview-card .preview-container .preview-layout .preview-content .preview-main .preview-tags {
  height: 30px;
  margin-bottom: 12px;
  background-color: #f0f2f5;
  border-radius: 4px;
}

.settings-preview-card .preview-container .preview-layout .preview-content .preview-main .preview-page {
  flex: 1;
  background-color: #f0f2f5;
  border-radius: 4px;
}

.settings-preview-card .preview-container .preview-layout .preview-content .preview-main .preview-footer {
  height: 20px;
  margin-top: 12px;
  background-color: #f0f2f5;
  border-radius: 4px;
}

.theme-preview {
  padding: 16px;
  border-radius: 8px;
  transition: all 0.3s;
  text-align: center;
}

.theme-preview.light {
  background-color: #f0f2f5;
  color: rgba(0, 0, 0, 0.85);
}

.theme-preview.dark {
  background-color: #141414;
  color: rgba(255, 255, 255, 0.85);
}

:global(.dark-mode) .ant-card {
  background-color: #1f1f1f;
  border-color: #303030;
}

:global(.dark-mode) .ant-card .ant-card-head {
  border-bottom-color: #303030;
}

:global(.dark-mode) .ant-typography {
  color: rgba(255, 255, 255, 0.85);
}

:global(.dark-mode) .ant-typography-secondary {
  color: rgba(255, 255, 255, 0.45);
}

:global(.dark-mode) .ant-divider {
  border-color: #303030;
}

:global(.dark-mode) .setting-description {
  color: rgba(255, 255, 255, 0.45);
}
